package com.bmadmin.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.bmadmin.domain.FileUpload;
import com.bmadmin.mapper.FileDao;
import com.bmadmin.service.FileService;
@Service
@Transactional
public class FileServiceImpl implements FileService {
	@Autowired
	FileDao fileDao;
	
	public List<FileUpload> getFileList(Map map){
		return fileDao.getFileList(map);
	}
	
	public int SaveFile(FileUpload fileUpload){
		return fileDao.SaveFile(fileUpload);
	}
	
	public int deleteFile(String id){
		return fileDao.deleteFile(id);
	}
}
